|
|
|
|
|
|
|
Figure 14.31
A rectangle extruded along a curved path. |
|
|
|
|
|
|
|
|
shows the base curves and generating paths used by these two methods. |
|
|
|
|
|
|
|
|
Like the simple surfaces described earlier in this chapter, extruded surfaces are generated from a set of data points. You can borrow some of the techniques used by simple surfaces to create an Extrusion3d class that stores, manipulates, and displays extruded surfaces. |
|
|
|
|
|
|
|
|
The Extrusion3d class needs room to store the data points that define it. These are the points along the base curve and the generating path. You can store these points in arrays |
|
|
|
|
|
|
|
|
Figure 14.32
Two ways to generate the surface shown in Figure 14.31. |
|
|
|
|
|